﻿







namespace UFIDA.U9.CUST.AITBarCodeRest
{
	using System;
	using System.Collections;
	using System.Collections.Generic;
	using System.ServiceModel;
	using System.Runtime.Serialization;
	using System.IO;
	using UFSoft.UBF.Util.Context;
	using UFSoft.UBF;
	using UFSoft.UBF.Exceptions;
	using UFSoft.UBF.Service.Base ;

    /// <summary>
    ///  IAITBarCodeUseSV Interface
    /// </summary>
    [System.ServiceModel.ServiceContractAttribute(Namespace = "UFIDA.U9.CUST.AITBarCodeRest")]
    public interface IAITBarCodeUseSV
    {
	[OperationContract()]
        ufida.u9.ait.openapi.ResultDTOData Do(UFSoft.UBF.Service.ISVContext context ,List<UFIDA.U9.CUST.AITBarCodeRest.AITBarCodeUseDTOData> data);
    }

    /// <summary>
    ///  AITBarCodeUseSVStub Class
    /// </summary>
    [UFSoft.UBF.Service.ServiceImplement]
    [ServiceBehavior(IncludeExceptionDetailInFaults = true)]
    public class AITBarCodeUseSVStub : ISVStubBase, IAITBarCodeUseSV
    {
        #region IAITBarCodeUseSV Members

        //[OperationBehavior]
        public ufida.u9.ait.openapi.ResultDTOData Do(UFSoft.UBF.Service.ISVContext context , List<UFIDA.U9.CUST.AITBarCodeRest.AITBarCodeUseDTOData> data)
        {
			
			ICommonDataContract commonData = CommonDataContractFactory.GetCommonData(context);
			return DoEx(commonData, data);
        }
        
        //[OperationBehavior]
        public ufida.u9.ait.openapi.ResultDTOData DoEx(ICommonDataContract commonData, List<UFIDA.U9.CUST.AITBarCodeRest.AITBarCodeUseDTOData> data)
        {
			this.CommonData = commonData ;
            try
            {
                BeforeInvoke("UFIDA.U9.CUST.AITBarCodeRest.AITBarCodeUseSV");                
                AITBarCodeUseSV objectRef = new AITBarCodeUseSV();
				objectRef.Data = data;

				//处理返回类型.
				ufida.u9.ait.openapi.ResultDTOData result = objectRef.Do();
				return result ;

	        }
			catch (System.Exception e)
            {
				DealException(e);
				throw;
            }
            finally
            {
				FinallyInvoke("UFIDA.U9.CUST.AITBarCodeRest.AITBarCodeUseSV");
            }
        }
	#endregion
    }
}
